from django.db import models

class Version(models.Model):
    version = models.IntegerField()

    def upgrade(self):
        self.version += 1
        self.save()
    
    def downgrade(self):
        self.version -= 1
        self.save()
